<div data-page="<{$pageName}>" class="page my_subject" >
				<div class="page-content"> 
				<include file="Public:subject_header" />
								<div class="container">
										 
																<div class="col-md-12"><include file="Public:subject_nav" /> </div>
																<div class="col-md-8">
																				<div class="text"> <{:Widget('BoxEdu/Index/subject_list',array('subjectid'=>$subjectid,'url'=>'Subject/lesson_detail','show_down'=>1))}> </div>
																</div>
																<div class="col-md-4 hidden-xs hidden-sm hidden-md"> <{:ADGroup('Subject_lesson')}> </div>
									 
								</div>
				</div>
	 </div>
		<div class="modal fade" id="modal_video" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
								<div class="modal-dialog" role="document">
												<div class="modal-content">
																<div class="modal-header">
																				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
																				<h4 class="modal-title">考前准备视频</h4>
																</div>
																<div class="modal-body">
																				<div id="videoPlayer" ></div>
																</div>
												</div>
								</div>
				</div>
		<script>
		 $(".down-link").click(function(){
			  var  type = $(this).attr("down-type");
					if(type==1){
					  $("#modal_video").modal("show");
						 $("#modal_video").attr("video-url",$(this).attr("video-url"));
							$("#modal_video").attr("data-id",$(this).attr("data-id"));
							return false;	
					}
			})
			
			$("#modal_video").on('shown.bs.modal', function (e) {
     $("#videoPlayer").width($("#modal_video").find('.modal-body').width());
						play_url=$(this).attr("video-url");
						id=$(this).attr("data-id");
						$("#videoPlayer").height($(window).height()*0.6);
							var param={
									id:'videoPlayer',
									url:play_url,
								};
							hiApp.playVideo(param);	
							$.post("/Index/down_user",{id:id}) ;
  })
		
		$("#modal_video").on('hide.bs.modal', function (e) {
			$("#videoPlayer").html("");

  })
		
		 
		</script>
